package com.qwz.example.visitor;

import com.qwz.example.customer.EnterpriseCustomer;
import com.qwz.example.customer.PersonalCustomer;
/** 
* @Description: 具体的访问者，实现对客户价值分析
* @Package: com.qwz.example.visitor.WorthAnalyzeVisitor
* @Author: Qiuwuzhi
* @CreateDate: 2019/12/29  下午 8:04
* @Version V1.0
*/ 
public class WorthAnalyzeVisitor implements Visitor {
    public void visitEnterpriseCustomer(EnterpriseCustomer customer) {
        System.out.println("现在对企业客户"+customer.getName()+"进行价值分析");
    }

    public void visitPersonalCustomer(PersonalCustomer customer) {
        System.out.println("现在对个人客户"+customer.getName()+"进行价值分析");
    }
}
